.class Les/jx;
.super Lcom/estrongs/android/view/h0;
.source "DownloadPropertyDialog.java"


# instance fields
.field public e:Lcom/estrongs/android/ui/dialog/q;

.field f:Ljava/lang/String;

.field g:Ljava/lang/String;


# direct methods
.method public constructor <init>(Landroid/app/Activity;Lcom/estrongs/fs/g;)V
    .locals 7

    .line 1
    invoke-direct {p0, p1}, Lcom/estrongs/android/view/h0;-><init>(Landroid/content/Context;)V

    const-string v0, ""

    .line 2
    iput-object v0, p0, Les/jx;->f:Ljava/lang/String;

    .line 3
    iput-object v0, p0, Les/jx;->g:Ljava/lang/String;

    const v0, 0x7f110212

    .line 4
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->d(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Les/jx;->f:Ljava/lang/String;

    const v0, 0x7f110214

    .line 5
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->d(I)Ljava/lang/CharSequence;

    move-result-object v0

    invoke-interface {v0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Les/jx;->g:Ljava/lang/String;

    const-string v0, "task"

    .line 6
    invoke-interface {p2, v0}, Lcom/estrongs/fs/g;->a(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object p2

    if-eqz p2, :cond_0

    .line 7
    instance-of v0, p2, Les/s80;

    if-eqz v0, :cond_0

    .line 8
    check-cast p2, Les/s80;

    invoke-virtual {p2}, Les/s80;->w()Lorg/json/JSONObject;

    move-result-object p2

    const v0, 0x7f090977

    .line 9
    iget-object v1, p0, Les/jx;->f:Ljava/lang/String;

    invoke-direct {p0, v0, v1}, Les/jx;->a(ILjava/lang/String;)V

    const v0, 0x7f090976

    .line 10
    invoke-virtual {p0, v0}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const-string v1, "title"

    .line 11
    invoke-virtual {p2, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Lcom/estrongs/android/pop/netfs/utils/TypeUtils;->getFileType(Ljava/lang/String;)I

    move-result v2

    invoke-static {v2}, Ljava/lang/String;->valueOf(I)Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/rj;->b(Ljava/lang/String;)Landroid/graphics/drawable/Drawable;

    move-result-object v2

    invoke-virtual {v0, v2}, Landroid/widget/ImageView;->setImageDrawable(Landroid/graphics/drawable/Drawable;)V

    const-string v0, "target"

    .line 12
    invoke-virtual {p2, v0}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const v2, 0x7f090959

    .line 13
    invoke-virtual {p2, v1}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-direct {p0, v2, v1}, Les/jx;->a(ILjava/lang/String;)V

    const v1, 0x7f09095c

    .line 14
    invoke-direct {p0, v1, v0}, Les/jx;->a(ILjava/lang/String;)V

    const-string v2, "size"

    .line 15
    invoke-virtual {p2, v2}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v2

    const v4, 0x7f090971

    .line 16
    new-instance v5, Ljava/lang/StringBuilder;

    invoke-direct {v5}, Ljava/lang/StringBuilder;-><init>()V

    invoke-static {v2, v3}, Lcom/estrongs/fs/util/f;->g(J)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v6, " ("

    invoke-virtual {v5, v6}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-static {v2, v3}, Lcom/estrongs/fs/util/f;->f(J)Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, " "

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const v2, 0x7f110902

    invoke-virtual {p0, v2}, Lcom/estrongs/android/view/h0;->d(I)Ljava/lang/CharSequence;

    move-result-object v2

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    const-string v2, ")"

    invoke-virtual {v5, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v5}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-direct {p0, v4, v2}, Les/jx;->a(ILjava/lang/String;)V

    .line 17
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v2

    invoke-virtual {v2}, Lcom/estrongs/android/pop/l;->I()Ljava/text/DateFormat;

    move-result-object v2

    .line 18
    new-instance v3, Ljava/util/Date;

    const-string v4, "start_time"

    invoke-virtual {p2, v4}, Lorg/json/JSONObject;->optLong(Ljava/lang/String;)J

    move-result-wide v4

    invoke-direct {v3, v4, v5}, Ljava/util/Date;-><init>(J)V

    .line 19
    invoke-virtual {v2, v3}, Ljava/text/DateFormat;->format(Ljava/util/Date;)Ljava/lang/String;

    move-result-object v2

    const v3, 0x7f09095f

    .line 20
    invoke-direct {p0, v3, v2}, Les/jx;->a(ILjava/lang/String;)V

    const v2, 0x7f090957

    const-string v3, "source"

    .line 21
    invoke-virtual {p2, v3}, Lorg/json/JSONObject;->optString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p2

    invoke-direct {p0, v2, p2}, Les/jx;->a(ILjava/lang/String;)V

    .line 22
    invoke-virtual {p0, v1}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/TextView;

    .line 23
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "<a href=\"ss\">"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v2, "</a>"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v1}, Landroid/text/Html;->fromHtml(Ljava/lang/String;)Landroid/text/Spanned;

    move-result-object v1

    invoke-virtual {p2, v1}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    const/4 v1, 0x1

    .line 24
    invoke-virtual {p2, v1}, Landroid/widget/TextView;->setClickable(Z)V

    .line 25
    new-instance v1, Les/jx$a;

    invoke-direct {v1, p0, v0}, Les/jx$a;-><init>(Les/jx;Ljava/lang/String;)V

    invoke-virtual {p2, v1}, Landroid/widget/TextView;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p2, 0x7f09088c

    .line 26
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/Button;

    .line 27
    new-instance v1, Les/jx$b;

    invoke-direct {v1, p0, v0}, Les/jx$b;-><init>(Les/jx;Ljava/lang/String;)V

    invoke-virtual {p2, v1}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    const p2, 0x7f090272

    .line 28
    invoke-virtual {p0, p2}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p2

    check-cast p2, Landroid/widget/Button;

    .line 29
    new-instance v0, Les/jx$c;

    invoke-direct {v0, p0, p1}, Les/jx$c;-><init>(Les/jx;Landroid/app/Activity;)V

    invoke-virtual {p2, v0}, Landroid/widget/Button;->setOnClickListener(Landroid/view/View$OnClickListener;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Les/jx;I)Landroid/view/View;
    .locals 0

    .line 2
    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p0

    return-object p0
.end method

.method private a(ILjava/lang/String;)V
    .locals 1

    .line 7
    invoke-virtual {p0, p1}, Lcom/estrongs/android/view/h0;->b(I)Landroid/view/View;

    move-result-object p1

    if-eqz p1, :cond_0

    .line 8
    instance-of v0, p1, Landroid/widget/TextView;

    if-eqz v0, :cond_0

    .line 9
    check-cast p1, Landroid/widget/TextView;

    invoke-virtual {p1, p2}, Landroid/widget/TextView;->setText(Ljava/lang/CharSequence;)V

    :cond_0
    return-void
.end method

.method static synthetic a(Les/jx;Ljava/lang/String;)V
    .locals 0

    .line 1
    invoke-direct {p0, p1}, Les/jx;->a(Ljava/lang/String;)V

    return-void
.end method

.method private a(Ljava/lang/String;)V
    .locals 1

    .line 3
    :try_start_0
    iget-object v0, p0, Les/jx;->e:Lcom/estrongs/android/ui/dialog/q;

    if-eqz v0, :cond_0

    .line 4
    iget-object v0, p0, Les/jx;->e:Lcom/estrongs/android/ui/dialog/q;

    invoke-virtual {v0}, Lcom/estrongs/android/ui/dialog/q;->dismiss()V

    .line 5
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    .line 6
    invoke-virtual {v0, p1}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->h(Ljava/lang/String;)Lcom/estrongs/android/view/FileGridViewWrapper;
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method


# virtual methods
.method protected k()I
    .locals 1

    const v0, 0x7f0c00fc

    return v0
.end method
